<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>组长主页</title>
<link rel="stylesheet" type="text/css" media="screen" href="css-table.css" />
<script type="text/javascript" src="js/jquery-1.2.6.min.js"></script>
<script type="text/javascript" src="js/style-table.js"></script>
</head>
<body background = "img/5.jpg">

<caption >&nbsp; &nbsp;欢迎来到你温馨的主页!&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp<a href="back.jsp">退出系统</a></caption><br></br>
<table id="travel" summary="欢迎来到你温馨的主页"></br>
<form>
  <input type="search" name="user_search" placeholder="search" />
  <input type="submit" >
</form>
<br/><br/><br/>




 <thead> 

		<tr>
            <th scope="col" colspan="12">小组成员及设置</th>
        </tr>
        <tr>
         <th scope="col">小组名</th>
            <th scope="col">成员名称</th>
            <th scope="col">成员职务</th>
            <th scope="col">成员简介</th>
            <th scope="col">修改信息</th>
          <th scope="col">移除组织</th>  
        
                       
        </tr>        
 </thead>
    
     <tbody>
		 <c:forEach items="${list}" var="u">
		<tr bgcolor="#FFFFFF" onMouseMove="javascript:this.bgColor='#00FFCC';"onMouseOut="javascript:this.bgColor='#FFFFFF';">
		<td>${u.groudname}</td>
		<td>${u.username}</td>
		<td>${u.leader}</td>
		<td>${u.introduction}</td>
		<td><a href="update?uid=${u.id}">修改信息</a></td>
		<td><a href="delete?uid=${u.id}">移除组织</a></td>
		<td><a href="show?uid=${u.id}">查看信息</a></td>

		</tr>
		</c:forEach>  
    </tbody>
    
 <tfoot>
    	<tr>
        	<th scope="row">All modes</th>
            <td></td>
            <td></td>
            <td></td>
            <td></td> 
            <td></td>             
        </tr>
    </tfoot>    
 </table>   

<div>
	<a href="BookShow?curPage=1">首页</a>
	<c:choose>
		<c:when test="${page.curPage==1 }">
			<a href="BookShow?curPage=${page.curPage }">上一页</a>
		</c:when>
		<c:otherwise>
			<a href="BookShow?curPage=${page.curPage-1 }">上一页</a>
		</c:otherwise>
	</c:choose>
	<c:choose>
		<c:when test="${page.curPage==page.totalPageCount }">
			<a href="BookShow?curPage=${page.curPage }">下一页</a>
		</c:when>
		<c:otherwise>
			<a href="BookShow?curPage=${page.curPage+1 }">下一页</a>
		</c:otherwise>
	</c:choose>
	<a href="BookShow?curPage=${page.totalPageCount }">尾页</a>
</div>

<form name="bookFrom" action="addgroup" method="post">
	小组名：<input name="name" type="text"/><br/>
	口&nbsp;&nbsp;&nbsp;号：<input name="leader" type="text"/><br/>
	简&nbsp;&nbsp;&nbsp;介：<input name="introduction" type="text"/><br/>
	<input type="submit" value="新建小组" />
</form> 
<br/><br/><br/>
小组名：<input name="name" type="text"/><br/>
<a href="user?type=del&uid=${u.id}" onclick="return confirm('确认删除？');">删除该组</a>
</body>
</html>